<!DOCTYPE html>

<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">

<title>module CategoriesHelper - Rails Application Documentation</title>

<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
</script>

<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>


<body id="top" class="module">
<nav id="metadata">
  <nav id="home-section" class="section">
  <h3 class="section-header">
    <a href="./index.html">Home</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </h3>
</nav>


  <nav id="search-section" class="section project-section" class="initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <h3 class="section-header">
      <input type="text" name="search" placeholder="Search" id="search-field"
             title="Type to search, Up and Down to navigate, Enter to load">
    </h3>
  </form>

  <ul id="search-results" class="initially-hidden"></ul>
</nav>


  <div id="file-metadata">
    <nav id="file-list-section" class="section">
  <h3 class="section-header">Defined In</h3>
  <ul>
    <li>app/helpers/categories_helper.rb
  </ul>
</nav>

    
  </div>

  <div id="class-metadata">
    
    
    
    <!-- Method Quickref -->
<nav id="method-list-section" class="section">
  <h3 class="section-header">Methods</h3>

  <ul class="link-list">
    
    <li><a href="#method-i-getCategoriesSortingOptionList">#getCategoriesSortingOptionList</a>
    
    <li><a href="#method-i-getCategoryColor">#getCategoryColor</a>
    
  </ul>
</nav>

  </div>

  <div id="project-metadata">
    <nav id="fileindex-section" class="section project-section">
  <h3 class="section-header">Pages</h3>

  <ul>
  
    <li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a>
  
  </ul>
</nav>

    <nav id="classindex-section" class="section project-section">
  <h3 class="section-header">Class and Module Index</h3>

  <ul class="link-list">
  
    <li><a href="./Account.html">Account</a>
  
    <li><a href="./AccountsController.html">AccountsController</a>
  
    <li><a href="./AccountsHelper.html">AccountsHelper</a>
  
    <li><a href="./ApplicationController.html">ApplicationController</a>
  
    <li><a href="./ApplicationHelper.html">ApplicationHelper</a>
  
    <li><a href="./CategoriesController.html">CategoriesController</a>
  
    <li><a href="./CategoriesHelper.html">CategoriesHelper</a>
  
    <li><a href="./Category.html">Category</a>
  
    <li><a href="./Eating.html">Eating</a>
  
    <li><a href="./EatingType.html">EatingType</a>
  
    <li><a href="./EatingsController.html">EatingsController</a>
  
    <li><a href="./EatingsHelper.html">EatingsHelper</a>
  
    <li><a href="./StatisticsController.html">StatisticsController</a>
  
    <li><a href="./StatisticsHelper.html">StatisticsHelper</a>
  
    <li><a href="./Transaction.html">Transaction</a>
  
    <li><a href="./TransactionsController.html">TransactionsController</a>
  
    <li><a href="./TransactionsHelper.html">TransactionsHelper</a>
  
    <li><a href="./User.html">User</a>
  
    <li><a href="./UsersController.html">UsersController</a>
  
    <li><a href="./UsersHelper.html">UsersHelper</a>
  
    <li><a href="./Weight.html">Weight</a>
  
    <li><a href="./WeightsController.html">WeightsController</a>
  
    <li><a href="./WeightsHelper.html">WeightsHelper</a>
  
  </ul>
</nav>

  </div>
</nav>

<div id="documentation">
  <h1 class="module">module CategoriesHelper</h1>

  <div id="description" class="description">
    
  </div><!-- description -->

  
  
  
  <section id="5Buntitled-5D" class="documentation-section">
    

    

    

    

    <!-- Methods -->
    
     <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
      <h3 class="section-header">Public Instance Methods</h3>

    
      <div id="method-i-getCategoriesSortingOptionList" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">getCategoriesSortingOptionList</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="getCategoriesSortingOptionList-source">
            <pre><span class="ruby-comment"># File app/helpers/categories_helper.rb, line 6</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">getCategoriesSortingOptionList</span>
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">content_tag</span>(<span class="ruby-value">:option</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'field.common.name'</span>), <span class="ruby-value">:value</span> =<span class="ruby-operator">&gt;</span><span class="ruby-string">&quot;name&quot;</span>) <span class="ruby-operator">+</span>
         <span class="ruby-identifier">content_tag</span>(<span class="ruby-value">:option</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'field.common.description'</span>), <span class="ruby-value">:value</span> =<span class="ruby-operator">&gt;</span><span class="ruby-string">&quot;description&quot;</span>) <span class="ruby-operator">+</span>
         <span class="ruby-identifier">content_tag</span>(<span class="ruby-value">:option</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'field.category.color'</span>), <span class="ruby-value">:value</span> =<span class="ruby-operator">&gt;</span><span class="ruby-string">&quot;color&quot;</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- getCategoriesSortingOptionList-source -->
          
        </div>

        

        
      </div><!-- getCategoriesSortingOptionList-method -->

    
      <div id="method-i-getCategoryColor" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">getCategoryColor</span><span
            class="method-args">(category)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="getCategoryColor-source">
            <pre><span class="ruby-comment"># File app/helpers/categories_helper.rb, line 2</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">getCategoryColor</span>(<span class="ruby-identifier">category</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">category</span>.<span class="ruby-identifier">color</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-string">'#fff'</span> <span class="ruby-operator">:</span> <span class="ruby-string">'#'</span><span class="ruby-operator">+</span><span class="ruby-identifier">category</span>.<span class="ruby-identifier">color</span>;
<span class="ruby-keyword">end</span></pre>
          </div><!-- getCategoryColor-source -->
          
        </div>

        

        
      </div><!-- getCategoryColor-method -->

    
    </section><!-- public-instance-method-details -->
  
  </section><!-- 5Buntitled-5D -->

</div><!-- documentation -->


<footer id="validator-badges">
  <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
  <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
  <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
</footer>

